tools: remove xenstore entries on vchan server closure
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Thu, 29 Sep 2022 12:38:02 +0000 (14:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Sep 2022 12:38:02 +0000 (14:38 +0200)
commit3ab6ea992b0e5e1a332bdbc8ae56d72f1b66fcbd
tree4045c76d88a859757396bb3171093509c4819249
parent211d8419ef8d8a237ff914fd8304b8fefc3ff2cc
tools: remove xenstore entries on vchan server closure

vchan server creates XenStore entries to advertise its event channel and
ring, but those are not removed after the server quits.
Add additional cleanup step, so those are removed, so clients do not try
to connect to a non-existing server.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Dmytro Semenets <dmytro_semenets@epam.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
tools/include/libxenvchan.h
tools/libs/vchan/init.c
tools/libs/vchan/io.c
tools/libs/vchan/vchan.h [new file with mode: 0644]